package com.xxxx.server.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author LT
 * @since 2022-02-27
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("lectureinfo")
@ApiModel(value="Lectureinfo对象", description="")
public class Lectureinfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Excel(name="讲座编号")
    @ApiModelProperty(value = "讲座id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

@Excel(name = "讲座名称")
    @ApiModelProperty(value = "讲座名")
    private String name;

@Excel(name = "讲座地址",width = 10)
    @ApiModelProperty(value = "讲座地址")
    private String address;

    @Excel(name = "讲座座位总数")
    @ApiModelProperty(value = "讲座座位总数")
    private Integer totalNumbers;

    @Excel(name = "座位剩余数量")
    @ApiModelProperty(value = "座位剩余数量")
    private Integer remainNumbers;

    @Excel(name = "讲座开始时间", exportFormat = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", importFormat ="yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",width = 25)
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    private LocalDateTime beginDate;


    @ApiModelProperty(value = "结束时间")
    @Excel(name = "讲座结束时间", exportFormat = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", importFormat ="yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",width = 25)
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    private LocalDateTime endDate;


}
